package com.bumptech.glide.samples.flickr;

import android.os.Bundle;
import android.os.PersistableBundle;
import android.widget.ImageView;
import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;
import com.bumptech.glide.Glide;

/**
 * Created by liwk on 2020/7/5.
 */
public class FlickrActivity extends AppCompatActivity {


  @Override
  protected void onCreate(@Nullable Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.flicker_activity);
    ImageView iv = findViewById(R.id.iv);
    String url="https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1593945792376&di=9fb45e52b1af1e3c3f32553c7e5c4ab3&imgtype=0&src=http%3A%2F%2Ft9.baidu.com%2Fit%2Fu%3D2268908537%2C2815455140%26fm%3D79%26app%3D86%26f%3DJPEG%3Fw%3D1280%26h%3D719";

    GlideApp.with(this).load(url)
        .placeholder(R.drawable.timg)
        .error(R.drawable.aa)
        .into(iv);
  }
}
